#!/bin/bash

source /etc/profile

workdir=$(cd $(dirname $0); pwd)
source $workdir/config.cfg

$workdir/../sync/sync_one.sh t_user_body_auth 10
$workdir/../sync/sync_cash_draws.sh

beeline -u "${hive_url}" -n bi-report -f $workdir/download/fin_cash_draws.sql
beeline -u "${hive_url}" -n bi-report -f $workdir/download/user_cash_draws.sql

